/**
 * 
 */
$(document).ready(function() {
	
//	$('.info').click(function(){
//		parent.location.href="index.jsp?a=shop.jsp";
//	});
	$('.addCar').click(function(){
		var uid = window.parent.document.getElementsByClassName("handler")[0].id;
		if(uid == "" || uid == null){
			alert("请先登录账号");
			return ;
		}
		var cid = $('.cid').attr('id');
		$.ajax({
			type:"get",
			url :"car/addCar?uid="+uid+"&cid="+cid,
			dateType:"json",
			success:function(){
				alert("添加成功");
			},
			error: function(){
				alert("添加失败");
			}
		});
	});
});